home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 1 / Cream of the Crop 1.iso / PROGRAM / AEWIN100.ARJ / GRAFCHRS.CC < prev    next >
C/C++ Source or Header  |  1990-12-24  |  2KB  |  107 lines

  1. /**********************************************************************
  2.  *  
  3.  *  NAME:           grafchrs.c
  4.  *  
  5.  *  DESCRIPTION:    arrays of line drawing chars
  6.  *  
  7.  *  copyright (c) 1990 J. Alan Eldridge
  8.  * 
  9.  *  M O D I F I C A T I O N   H I S T O R Y
  10.  *
  11.  *  when        who                 what
  12.  *  -------------------------------------------------------------------
  13.  *  05/27/90    J. Alan Eldridge    created from line, cornerch, teechar
  14.  *  
  15.  *  12/01/90    JAE                 modified for Uwin 2.0
  16.  *
  17.  *********************************************************************/
  18.  
  19. #include    "aedef.h"
  20.  
  21. /**********************************************************************
  22.  *
  23.  *  corner characters
  24.  *
  25.  *  UWCornerChars [n] [v] [h]
  26.  *
  27.  *  v & h are 0 for single line, 1 for double,
  28.  *  n is location as per the following diagram:
  29.  *
  30.  *      0   1
  31.  *
  32.  *      3   2
  33.  *
  34.  *********************************************************************/
  35.  
  36. uchar UWCornerChars [][2][2] = {
  37.     218, 213, 
  38.     214, 201, 
  39.  
  40.     191, 184, 
  41.     183, 187,
  42.  
  43.     217, 190, 
  44.     189, 188,
  45.  
  46.     192, 212, 
  47.     211, 200
  48. };
  49.  
  50. /**********************************************************************
  51.  *
  52.  *  line drawing chars
  53.  *
  54.  *  UWLineChars [n] [h_or_v]
  55.  *
  56.  *  h_or_v is 0 for horizontal, 1 for vertical
  57.  *  n is 0 for single line, 1 for double line
  58.  *
  59.  *********************************************************************/
  60.  
  61. uchar UWLineChars [][2] = {
  62.     196, 179,
  63.     205, 186
  64. };
  65.  
  66. /**********************************************************************
  67.  *  
  68.  *  graphic chars used to create a complex box type display
  69.  *
  70.  *  UWTeeChars [n] [v] [h] 
  71.  *  
  72.  *  the positions on the box are numbered like this:
  73.  *
  74.  *          0
  75.  *             
  76.  *      3   4   1
  77.  *
  78.  *          2
  79.  *
  80.  *  therefore the characters are shaped like this (0 to 4):
  81.  *
  82.  *      ---          | 
  83.  *       |    --|   ---   |--   -|-
  84.  *
  85.  *  v & h are 0 for single lines, 1 for double lines
  86.  *
  87.  *********************************************************************/
  88.  
  89. uchar UWTeeChars [][2][2] = {
  90.     194, 209, 
  91.     210, 203,
  92.  
  93.     180, 181, 
  94.     182, 185,
  95.  
  96.     193, 207, 
  97.     208, 202,
  98.  
  99.     195, 198, 
  100.     199, 204,
  101.  
  102.     197, 216, 
  103.     215, 206
  104. };
  105.  
  106.  
  107.